﻿// 1.1.3.04. Write a boolean expression for finding if the bit 3 (counting from 0) of a given integer is 1 or 0.

using System;

class ThirdBitOfNumber
{
    static void Main()
    {
        Begin:
        Console.Write("Please enter a number: ");
        int inputNumber = int.Parse(Console.ReadLine());
        Console.WriteLine("The 3rd bit of \"{0}\" is: {1}.", inputNumber, (inputNumber >> 3) & 1);
        goto Begin;
    }
}
